package com.zelix;

import java.io.File;
import javax.swing.*;
import javax.swing.plaf.metal.MetalIconFactory;

public class b0
{

    private JFileChooser a;
    private static String z[];

    public b0()
    {
        try
        {
            a = new JFileChooser();
        }
        catch(Throwable throwable) { }
    }

    public Icon a(File file)
    {
        if(a != null)
            try
            {
                return a.getIcon(file);
            }
            catch(Throwable throwable) { }
        return null;
    }

    public static Icon a()
    {
        try
        {
            Icon icon = UIManager.getIcon(z[0]);
            if(icon == null)
                icon = MetalIconFactory.getFileChooserNewFolderIcon();
            return icon;
        }
        catch(Throwable throwable)
        {
            return null;
        }
    }

    public static Icon b()
    {
        try
        {
            Icon icon = UIManager.getIcon(z[1]);
            if(icon == null)
                icon = MetalIconFactory.getFileChooserUpFolderIcon();
            return icon;
        }
        catch(Throwable throwable)
        {
            return null;
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x56;
                    break;
                case 1:
                    key = 59;
                    break;
                case 2:
                    key = 97;
                    break;
                case 3:
                    key = 21;
                    break;
                default:
                    key = 75;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[2];
        as[0] = z("\020R\rp\b>T\016f.$\025\017p<\020T\rq.$r\002z%".toCharArray());
        as[1] = z("\020R\rp\b>T\016f.$\025\024e\r9W\005p9\037X\016{".toCharArray());
        z = as;
    }
}